{% extends 'home.html' %}

{% block title %}
    {{ user_obj.blog.site_title }}
{% endblock %}

{% block css %}
    <link rel="stylesheet" href="/media/css/{{ user_obj.blog.site_theme }}">
{% endblock %}


{% block content %}
    <div class="col-md-2">
            {% load mytag %}
            {% left_menu blog %}
    </div>
    <div class="col-md-10">
        {% for article_obj in article_list %}
            <div class="media">
                <h4 class="media-heading"><a href="/{{ username }}/articles/{{ article_obj.pk }}">{{ article_obj.title }}</a></h4>
                  <div class="media-body">
                    {{ article_obj.desc }}
                  </div>
                    <br>
                    <div class="pull-right">
{#                        posted @ 2022-05-27 11:37 Milton 阅读(7) 评论(0) 推荐(0) 编辑#}
                        <span>posted&nbsp;&nbsp;</span>
                        <span>@&nbsp;&nbsp;</span>
                        <span>{{ article_obj.create_time|date:'Y-m-d H:i:s' }}&nbsp;&nbsp;</span>
                        <span>{{ article_obj.blog.userinfo.username }}&nbsp;&nbsp;</span>
                        <span><span class="glyphicon glyphicon-thumbs-up"></span>{{ article_obj.up_num }}&nbsp;&nbsp;</span>
                        <span><span class="glyphicon glyphicon-thumbs-down"></span>{{ article_obj.down_num }}&nbsp;&nbsp;</span>
                        <span><span class="glyphicon glyphicon-comment"></span>{{ article_obj.comment_num }}&nbsp;&nbsp;</span>
                        <a href="#">编辑</a>
                    </div>
                </div>
            <hr>
        {% endfor %}
    </div>
{% endblock %}